import api from "@/api/axiosApi"

const houseEvaluate = {
	addEvaluate(url, params) { //用户对农家乐进行评价
		return api.post(url, params)
	},
	EditEvaluate(url, params) { //用户修改评价
		return api.post(url, params)
	},
	getHouseEvaluateAll(url, params) { //全部评价
		return api.get(url, params)
	},
	/**
	 * 查询评分为4和5的农家乐评价
	 */
	getHouseEvaluateFourAndFive(url, params) {
		return api.get(url, params)
	},
	/**
	 * 查询评分为3的农家乐评价
	 */
	getHouseEvaluateThree(url, params) {
		return api.get(url, params)
	},
	/**
	 * 查询评分为1和2的农家乐评价
	 */
	getHouseEvaluateOneAndTow(url, params) {
		return api.get(url, params)
	},
	/**
	 * 后台查询全部农家乐评价
	 */
	getMagEvaluateAll(url, params){
		return api.get(url, params)
	},
	/**
	 * 后台删除农家乐评价
	 */
	DeleteHouseEvaluate(url, params){
		return api.del(url, params)
	}
}

export default houseEvaluate;